//
//  WUFindNameCell.m
//  Home
//
//  Created by 吴军虎吴军虎 on 16/5/5.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "WUFindNameCell.h"

@interface WUFindNameCell()

@property (nonatomic,retain) UIImageView *myImageView;
@property (nonatomic,retain) UILabel *namelabel;
@property (nonatomic,retain) UIImageView *sexImageView;
@property (nonatomic,retain) UILabel *gonglabel;

@end

@implementation WUFindNameCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
- (void)creatView{
    
    self.contentView.backgroundColor = LV;
    
    
    _myImageView = [UIImageView new];
    _myImageView.layer.masksToBounds = YES;
    _myImageView.layer.cornerRadius = 55/2 * AUTO_WIDTH;
    _myImageView.image = [UIImage imageNamed:@"backImage"];
    [self.contentView addSubview:_myImageView];
    [_myImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.mas_top).offset(30/2 * AUTO_HEIGHT);
        make.width.mas_equalTo(55 * AUTO_WIDTH);
        make.height.mas_equalTo(55 * AUTO_HEIGHT);
        make.left.mas_equalTo(15 *AUTO_WIDTH);
        
    }];
    
    
    _sexImageView = [UIImageView new];
    _sexImageView.image = [UIImage imageNamed:@"xingbeinan"];
    [self.contentView addSubview:_sexImageView];
    [_sexImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(_myImageView).offset(5 * AUTO_HEIGHT);
        make.size.mas_equalTo(CGSizeMake(15 *AUTO_WIDTH, 15 * AUTO_HEIGHT));
        make.right.mas_equalTo(_myImageView.mas_right).offset(-0 * AUTO_WIDTH);
        
    }];
    
    
    _namelabel=[[UILabel alloc]init];
    _namelabel.text=@"张叶军";
    _namelabel.alpha=0.6;
    _namelabel.font=[UIFont systemFontOfSize:14];
    [self.contentView addSubview:_namelabel];
    [_namelabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.contentView).offset(32 *AUTO_HEIGHT);
        make.left.equalTo(_myImageView.mas_right).offset(15 *AUTO_WIDTH);
        make.size.mas_equalTo(CGSizeMake(46 *AUTO_WIDTH, 20 *AUTO_HEIGHT));
        
    }];
    

    _gonglabel=[[UILabel alloc]init];
    _gonglabel.layer.borderColor=GH.CGColor;
    _gonglabel.layer.borderWidth=1;
    _gonglabel.text=@"共8个任务";
    _gonglabel.textColor=GH;
    _gonglabel.textAlignment=NSTextAlignmentCenter;
    _gonglabel.font=[UIFont fontWithName:TFont size:12];
    _gonglabel.layer.cornerRadius=10;
    [self.contentView addSubview:_gonglabel];
    [_gonglabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.contentView).offset(32 *AUTO_HEIGHT);
        make.right.equalTo(self).offset(-15 *AUTO_WIDTH);
        make.size.mas_equalTo(CGSizeMake(70 *AUTO_WIDTH, 20 *AUTO_HEIGHT));
    }];
    
}


@end
